<template>
  <div class="board">
    <h3>{{ title }}</h3>
    <!-- 给使用插槽的组件传递数据 -->
    <slot :games="games" msg="hello">我是默认的插槽</slot>
  </div>
</template>

<script>
export default {
  name: "Category",
  props: ["title"],
  data() {
    return {
      games: ["王者荣耀", "植物大战僵尸", "开心消消乐"],
    };
  },
};
</script>

<style scoped>
.board {
  width: 200px;
  height: 300px;
  background-color: skyblue;
}
h3 {
  background-color: orange;
  text-align: center;
}
</style>